import type {ModalFormProps} from "@ant-design/pro-form/lib/layouts/ModalForm";

export interface OptionActions<ADD, DATA> {
  edit: (data: string | ADD) => void,
  editModal: ((data: DATA, authorized: boolean) => ModalFormProps) | ModalFormProps,
  remove: (ids: (number | string)[]) => void,
  add: (() => void),
  addModal: ((id: string, authorized: boolean) => ModalFormProps) | ModalFormProps,
  import: {
    showUploadList: boolean,
    maxCount: number,
    beforeUpload: (file?: any) => void,
  };
  export: () => void,
  exportTemplate: () => void,

  other: () => void
}

export interface BaseStatelessProps<data, params> {

}
